//
//  ZCSRecommendModel.m
//  聆听FM
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 Dark. All rights reserved.
//

#import "ZCSRecommendModel.h"
#import "ZCSFocusImagesModel.h"



@implementation ZCSRecommendModel
- (instancetype)initWithDic:(NSDictionary *)dic
{
    self = [super initWithDic:dic];
    if (self) {
        self.reDiscoveryModel = [[ZCSReDiscoveryModel alloc] initWithDic:_discoveryColumns];
        //轮播图
        NSArray *array = [_focusImages objectForKey:@"list"];
        self.focusImagesArray = [NSMutableArray array];
        for (NSDictionary *dic in array) {
            ZCSFocusImagesModel *focusModel = [[ZCSFocusImagesModel alloc] initWithDic:dic];
            if (focusModel.type == 2 || focusModel.type == 3 || focusModel.type == 9) {
                [self.focusImagesArray addObject:focusModel];
            }
            
        }
        
        self.hotRecomModel = [[ZCSHotRecomModel alloc] initWithDic:_hotRecommends];
        
        self.specialModel = [[ZCSSpecialColumnModel alloc] initWithDic:_specialColumn];
        
        self.editorModel = [[ZCSEditorRecomModel alloc] initWithDic:_editorRecommendAlbums];
        
    }
    return self;
}


@end
